var bookStoreCtrls = angular.module('bookStoreCtrls', []);

bookStoreCtrls.controller('HelloCtrl', ['$scope', 
    function($scope){
        $scope.greeting = {
            text: 'Hello'
        };
    }
]);

bookStoreCtrls.controller('BookListCtrl', ['$scope', 
    function($scope){
        $scope.books = [
            {title: '《Ext江湖》', author: '大漠穷秋'},
            {title: '《ActionScript游戏设计基础（第二版）》', author: '大漠穷秋'},
            {title: '《用AngularJS开发下一代WEB应用》', author: '大漠穷秋'}
        ];
    }
]);

bookStoreCtrls.controller('IndexCtrl', ['$scope', 
    function($scope){
        $scope.bookUrls = [
            {href: '#/hello', title: 'hello'},
            {href: '#/list', title: 'list'}
        ];
    }
]);